package com.fan.tujiedesignpattern.chap04.idcard;

import com.fan.tujiedesignpattern.chap04.framework.Product;

/**
 * @author : PF_23
 * @Description :
 * @date : 2020/06/04.
 */

public class IDCard extends Product {
    private String owner;

    public IDCard(String owner) {
        System.out.println("制作 " + owner + " 的ID卡");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("使用 " + owner + " 的ID卡");
    }

    public String getOwner() {
        return owner;
    }
}

